From 579afaa9a1473ed561f4552242f1eff57b4a2250 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 6 May 2011 14:53:09 -0400 Subject: [PATCH] progressbar: fetch the padding without the trough style class This is consistent with the rest of the widget, which uses only one padding value. https://bugzilla.gnome.org/show_bug.cgi?id=649593 --- gtk/gtkprogressbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index c4fb26627a..46e9aa42b7 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -965,6 +965,7 @@ gtk_progress_bar_draw (GtkWidget *widget, context = gtk_widget_get_style_context (widget); state = gtk_widget_get_state_flags (widget); + gtk_style_context_get_padding (context, state, &padding); orientation = priv->orientation; inverted = priv->inverted; @@ -982,8 +983,6 @@ gtk_progress_bar_draw (GtkWidget *widget, gtk_render_background (context, cr, 0, 0, width, height); gtk_render_frame (context, cr, 0, 0, width, height); - gtk_style_context_get_padding (context, state, &padding); - gtk_style_context_restore (context); if (priv->activity_mode) -- 2.30.2